package com.chenyongjing.design.pattern.visitor.kpi;

import java.util.Random;

/**
 * @Author chen
 * @Date 2022/12/8 22:19
 */
public abstract class Employee {
    public String name;
    public int kpi;

    public Employee(String name){
        this.name = name;
        kpi =new Random().nextInt(10);
    }

    // 接受访问者访问
    public abstract void accept(IVisitor visitor);
}
